export default {
    getItem: function (key) {
        let value = ''
        try {
            value = localStorage.getItem(key)
        } catch (e) {
            console.log("找不到" + key + "的")
        } finally {
            return value
        }
    },
    setItem: function (key, value) {
        try {
            localStorage.setItem(key, item)
        } catch (e) {
            if(__DEV__){
                console.log("设置失败")
            }
        }
    }
}